package Graphic;

import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class GamePanel extends JPanel{
	GamePanel(){
		frameSet();
	}
	private void frameSet(){
		setLayout(null);
		setPreferredSize(new Dimension(1024,768));
        setVisible(false);
        
		ImageIcon img_background = new ImageIcon("images/char.jpg");
		JLabel lab_bg = new JLabel("", img_background,SwingConstants.CENTER);
		
		lab_bg.setSize(1024,768);
		lab_bg.setLocation(0,0);

		setSize(1024,768);
		add(lab_bg);
	}
}